home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / clang / netclb23.zip / NETWARE.H < prev    next >
C/C++ Source or Header  |  1994-05-20  |  5KB  |  157 lines

  1. /*********************************/
  2. /* Netware C Library Header file */
  3. /*********************************/
  4.  
  5. #ifndef NETWARE_H
  6. #define NETWARE_H
  7.  
  8. #define NETCLB_VERSION 2.30
  9.  
  10. /***************************************/
  11. /* Bindery object type classifications */
  12. /***************************************/
  13.  
  14. #define UNKNOWN         0x0000 /* unknown object */
  15. #define USER            0x0001 /* User type object */
  16. #define USER_GROUP      0x0002 /* Group type object */
  17. #define PRINT_Q         0x0003 /* Print Queue type object */
  18. #define FILE_SERVER     0x0004 /* FileServer */
  19. #define JOB_SERVER      0x0005 /* Job server */
  20. #define GATEWAY         0x0006 /* Gateway */
  21. #define PRN_SERVER      0x0007 /* Print server */
  22. #define ARCHIVE_Q       0x0008 /* Archive queue */
  23. #define ARC_SERVER      0x0009 /* Archive server */
  24. #define JOB_Q           0x000a /* Job queue */
  25. #define ADMIN           0x000b /* Administration */
  26. #define REM_BRIDGE      0x0026 /* Remote bridge */
  27. #define ADV_PRN_SERVER  0x0047 /* Advertising Print Server */
  28. #define WILDCARD        0xffff /* WildCard */
  29.  
  30. /*************************************/
  31. /* Trustee\Effective Rights settings */
  32. /*************************************/
  33.  
  34. #define RT_NONE       0x00
  35. #define RT_READ       0x01
  36. #define RT_WRITE      0x02
  37. #define RT_OPEN       0x04
  38. #define RT_CREATE     0x08
  39. #define RT_DELETE     0x10
  40. #define RT_OWNERSHIP  0x20
  41. #define RT_SEARCH     0x40
  42. #define RT_MODIFY     0x80
  43. #define RT_ALL        0xff
  44.  
  45. /*******************/
  46. /* File Attributes */
  47. /*******************/
  48.  
  49. #define FA_NORMAL         0x00
  50. #define FA_READ_ONLY      0x01
  51. #define FA_HIDDEN         0x02
  52. #define FA_SYSTEM         0x04
  53. #define FA_EXECUTE_ONLY   0x08
  54. #define FA_DIRECTORY      0x10
  55. #define FA_NEEDS_ARCHIVE  0x20
  56. #define FA_SHAREABLE      0x80
  57.  
  58. /****************************/
  59. /* Extended File Attributes */
  60. /****************************/
  61.  
  62. #define FA_TRANSACTIONAL  0x10
  63. #define FA_INDEXED        0x20
  64. #define FA_READ_AUDIT     0x40
  65. #define FA_WRITE_AUDIT    0x80
  66.  
  67. /*****************************/
  68. /* Property Name definitions */
  69. /*****************************/
  70.  
  71. /* These strings are previously defined by Novell, you can however  */
  72. /* create your own properties, that the Bindery will maintain, but  */
  73. /* they could only be utilised by your own software. eg RWDC rights */
  74. /* within your own package.                                         */
  75.  
  76. #define LOGINCONTROL  "LOGIN_CONTROL"
  77. #define ACC_SERV      "ACCOUNT_SERVERS"
  78. #define ACC_BAL       "ACCOUNT_BALANCE"
  79. #define PASS          "PASSWORD"
  80. #define SEC_EQUIV     "SECURITY_EQUALS"
  81. #define GROUPMEMS     "GROUP_MEMBERS"
  82. #define GROUPS_IN     "GROUPS_I'M_IN"
  83. #define NETADDR       "NET_ADDRESS"
  84. #define IDENT         "IDENTIFICATION"
  85. #define OPERS         "OPERATORS"
  86.  
  87. /********************************************************************/
  88. /* Object Max Name Sizes                                            */
  89. /*                                                                  */
  90. /* The following are the maximum size of object values including a  */
  91. /* null terminator. i.e. ASCIIZ strings.                            */
  92. /********************************************************************/
  93.  
  94. #define OBJECT_LENGTH         48   /* object name max length */
  95. #define PROPERTY_LENGTH       16   /* property name max length */
  96. #define PASSWORD_LENGTH       128  /* password max length */
  97. #define FILE_PATH_LENGTH      256  /* file path maximum length */
  98. #define DIR_PATH_LENGTH       256  /* directory path maximum length */
  99. #define VOLUME_NAME_LENGTH    17   /* volume name maximum length */
  100. #define SEMAPHORE_NAME_LENGTH 127  /* semaphore name maximum length */
  101.  
  102. /****************************/
  103. /* Some Useful Return Codes */
  104. /****************************/
  105.  
  106. #define SUCCESS                0x00 /* Function was successful */
  107. #define CAP_NACTIVE            0x00 /* Capture is NOT active */
  108. #define NO_MORE_PATHS          0x9c /* No more trustee paths */
  109. #define NO_NETWARE_SHELL       0xbb /* Netware shell not loaded */
  110. #define NOT_SUPPORTED_AT_V3    0xbc /* Function not available with */
  111.                                     /* Netware 3.xx                */
  112.  
  113. /****************/
  114. /* All typedefs */
  115. /****************/
  116.  
  117. typedef unsigned long    dword;     /* four bytes */
  118. typedef unsigned int     word;      /* two bytes */
  119. typedef unsigned char    byte;      /* single byte */
  120.  
  121. typedef struct {
  122.    byte hi_byte;      /* NetWare int, */
  123.    byte lo_byte;      /* hibyte first (inverse native PC) */
  124.    } nw_int;
  125.  
  126. typedef struct {
  127.    byte hihi_byte;   /* NetWare long */
  128.    byte hilo_byte;   /* hibyte first (inverse native PC) */
  129.    byte lohi_byte;
  130.    byte lolo_byte;
  131.    } nw_long;
  132.  
  133. #endif        /* NETWARE_H */
  134.  
  135. /********************************/
  136. /* Prototypes for all functions */
  137. /********************************/
  138.  
  139. #include "bindery.h"
  140. #include "connect.h"
  141. #include "direct.h"
  142. #include "file.h"
  143. #include "general.h"
  144. #include "message.h"
  145. #include "nwcall.h"
  146. #include "print.h"
  147. #include "sync.h"
  148. #include "server.h"
  149. #include "wstation.h"
  150. #include "ipxspx.h"
  151. #include "queue.h"
  152. #include "encrypt.h"
  153.  
  154. /****************************************/
  155. /* End of Netware C Library Header file */
  156. /****************************************/
  157.